package com.consumer.controller;

import com.consumer.feign.DemoFeign;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {
  @Resource
  private DemoFeign feign;

  @GetMapping("demo")
  public String demo(){
    return feign.demo();
  }

}
